package com.facebook.drawee.gestures;

import android.content.Context;
import android.view.ViewConfiguration;

import com.facebook.common.internal.VisibleForTesting;

public final class GestureDetector {
    public interface ClickListener {
        boolean onClick();
    }

    @VisibleForTesting
    public ClickListener mClickListener;
    @VisibleForTesting
    public final float mSingleTapSlopPx;
    @VisibleForTesting
    public boolean mIsCapturingGesture;
    @VisibleForTesting
    public boolean mIsClickCandidate;
    @VisibleForTesting
    public long mActionDownTime;
    @VisibleForTesting
    public float mActionDownX;
    @VisibleForTesting
    public float mActionDownY;

    public GestureDetector(Context arg2) {

        this.mSingleTapSlopPx = ((float) ViewConfiguration.get(arg2).getScaledTouchSlop());
        this.init();
    }

    public final void init() {
        this.mClickListener = null;
        this.reset();
    }

    public final void reset() {
        this.mIsCapturingGesture = false;
        this.mIsClickCandidate = false;
    }
}

